.goods-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding-left: 5rem; /* 增加左边距 */
  padding-right: 5rem; /* 增加右边距 */
  padding-top: 2rem;
}

.goods-item {
  width: calc(20% - 1rem); /* 每行显示5个商品，每个商品之间有1rem的间隔 */
  height: 400px; /* 固定高度 */
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative; /* 使定位子元素相对于商品项 */
  border: 1px solid #ccc;
  padding: 1rem;
  box-sizing: border-box;
  cursor: pointer;
}

.goods-img {
  width: 100%;
  height: 200px; /* 固定高度 */
  object-fit: contain; /* 图片完整显示 */
  background-color: #f9f9f9; /* 可选：为图片留白区域添加背景色 */
}

.good-blurb,
.good-price {
align-self: flex-start; /* 左对齐 */
}

.good-createUser {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
}

.good-createTime {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
}

.goods-item:hover {
  transform: scale(1.05); /* 鼠标悬停时放大 */
}
